/**
 * 
 * If you have edited the file, please update
 * all the last-modified fields manually. Thanks!
 *
 * @last-modified by: 
 * @last-modified date: 
 * @last-modified time: 
 *
 * @author Swee Zhi
 * @date-created Oct 26, 2011    @time-created 10:20:03 AM
 *
 * @project: 
 * @module: 
 * @institution: 
 *
 */
package entity;

import java.io.Serializable;
import java.sql.Time;
import javax.persistence.Entity;
import util.enumeration.ActivityType;
import util.enumeration.SingaporeArea;

@Entity(name="Attraction")
public class AttractionEntity extends ActivityEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private Time openingHour;
    private Time closingHour;
    private String imgUrl;
    
    public AttractionEntity() {
        super();
    }
    
    public void create(ActivityType activityType, String attractionName, String attractionDesc, SingaporeArea singaporeArea, Time openingHour, Time closingHour, String imgUrl) {
        super.setActivityType(activityType);
        super.setActivityName(attractionName);
        super.setActivityDesc(attractionDesc);
        super.setSingaporeArea(singaporeArea);
        this.setOpeningHour(openingHour);
        this.setClosingHour(closingHour);
        this.setImgUrl(imgUrl);
    }
   

    public Time getClosingHour() {
        return closingHour;
    }

    public void setClosingHour(Time closingHour) {
        this.closingHour = closingHour;
    }

    public Time getOpeningHour() {
        return openingHour;
    }

    public void setOpeningHour(Time openingHour) {
        this.openingHour = openingHour;
    }

    public String getImgUrl() {
        return imgUrl;
    }
    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }
    
}
